<template>
    <div>
        <el-bread></el-bread>
        <el-button @click="addList" type="primary" plain class="addBtn" size="mini">添加</el-button>
        <v-list class="table" @edit="edit"></v-list>
        <v-dialog :zhe="zhe" :isAdd="isAdd" @close="close" ref="dialogRef"></v-dialog>
    </div>
</template>
<script>
import vList from "./list.vue"
import vDialog from "./dialog.vue"
export default {
    data() {
        return {
            form: {
            },
            zhe: false,
            isAdd: true
        }
    },
    methods: {
        addList() {
            this.zhe = true
            this.isAdd = true
        },
        close() {
            this.zhe = false
        },
        edit(e) {
            this.zhe = true
            this.isAdd = false
            this.$refs.dialogRef.lookup(e)
        }
    },
    mounted() { },
    watch: {},
    computed: {},
    filters: {},
    components: {
        vList,
        vDialog
    }
}
</script>
<style scoped>
.addBtn {
    margin: 20px 0 20px 0;

}

.table {
    min-width: 1070px;
}
</style>